package com.gopay.common.domain.user;

import java.util.Date;

import javax.persistence.*;

import com.gopay.common.domain.BaseEntity;

/**
 * 操作员
 * @CAuthOperator.java
 * @author HJY
 * @2013-7-15 上午10:11:25  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CAUTH_OPERATOR_INFO")
public class CauthOperatorInfo extends BaseEntity {

    private static final long serialVersionUID = -3127285908744881894L;
    
    @Id
    @Column(name = "OPER_ID")
    private String operId;
    
    @Column(name = "DEPARTMENT_ID")
    private String departmentId;
    
    @Column(name = "OPER_TYPE")
    private String operType;
    
    @Column(name = "OPER_PWD")
    private String operPwd;
    
    @Column(name = "OPER_NAME")
    private String operName;
    
    @Column(name = "OPER_EMAIL")
    private String operEmail;
    
    @Column(name = "PHONE_NO")
    private String phoneNo;
    
    @Column(name = "OPER_STATUS")
    private String operStatus;

    @Column(name = "OPER_POSITION")
    private String position;
    
    @Column(name = "LAST_VALIDITY_DAY")
    private String lastValidityDay;
    
    @Column(name = "REMARK")
    private String remark;
    
    @Column(name = "CREATED_TS")
    private Date createdTs;
    
    @Column(name = "LAST_UPD_TS")
    private Date lastUpdTs;
    
    
    @Column(name = "LAST_UPD_TRANCODE")
    private String lastUpdTranCode;

    @Column(name = "PWD_ERR_NUM")
    private int pwdErrNum;

    /**
     * 登陆密码过期时间
     */
    @Column(name = "PWD_DEADLINE_TS")
    private Date passwordDeadline;

    /**
     * 是否安全登录
     * 1表示是，0表示否
     */

    @Column(name = "IS_SAFE_LOGIN")
    private Integer isSafeLogin;

    @Column(name = "UK_CERT_SWITCH")
    private String ukCertSwitch;


    @Transient
    private boolean deadlineShow;

    public String getOperId() {
        return operId;
    }

    public void setOperId(String operId) {
        this.operId = operId;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getOperType() {
        return operType;
    }

    public void setOperType(String operType) {
        this.operType = operType;
    }

    public String getOperPwd() {
        return operPwd;
    }

    public void setOperPwd(String operPwd) {
        this.operPwd = operPwd;
    }

    public String getOperName() {
        return operName;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }

    public String getOperEmail() {
        return operEmail;
    }

    public void setOperEmail(String operEmail) {
        this.operEmail = operEmail;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getOperStatus() {
        return operStatus;
    }

    public void setOperStatus(String operStatus) {
        this.operStatus = operStatus;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getLastValidityDay() {
        return lastValidityDay;
    }

    public void setLastValidityDay(String lastValidityDay) {
        this.lastValidityDay = lastValidityDay;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public String getLastUpdTranCode() {
        return lastUpdTranCode;
    }

    public void setLastUpdTranCode(String lastUpdTranCode) {
        this.lastUpdTranCode = lastUpdTranCode;
    }

    public int getPwdErrNum() {
        return pwdErrNum;
    }

    public void setPwdErrNum(int pwdErrNum) {
        this.pwdErrNum = pwdErrNum;
    }

    public String getUkCertSwitch() {return ukCertSwitch;}

    public void setUkCertSwitch(String ukCertSwitch) {this.ukCertSwitch = ukCertSwitch;}

    public Date getPasswordDeadline() {
        return passwordDeadline;
    }

    public void setPasswordDeadline(Date passwordDeadline) {
        this.passwordDeadline = passwordDeadline;
    }

    public Integer getIsSafeLogin() {
        return isSafeLogin;
    }

    public void setIsSafeLogin(Integer isSafeLogin) {
        this.isSafeLogin = isSafeLogin;
    }

    public boolean isDeadlineShow() {
        return deadlineShow;
    }

    public void setDeadlineShow(boolean deadlineShow) {
        this.deadlineShow = deadlineShow;
    }
}
